From: Timo Röhling Date: Sat, 4 May 2024 18:37:47 +0000 (+0200) Subject: Do not build spirv-* with Werror X-Git-Tag: archive/raspbian/1.9.25+dfsg3-3+rpi1^2~3 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=1e086873b6a301e1dca40a5f3a5e114bb87f3da1;p=filament.git Do not build spirv-* with Werror Gbp-Pq: Name 0021-Do-not-build-spirv-with-Werror.patch --- diff --git a/third_party/spirv-cross/tnt/CMakeLists.txt b/third_party/spirv-cross/tnt/CMakeLists.txt index 25da487..cb375bf 100644 --- a/third_party/spirv-cross/tnt/CMakeLists.txt +++ b/third_party/spirv-cross/tnt/CMakeLists.txt @@ -37,7 +37,7 @@ endif() # -DCMAKE_CXX_COMPILE_FLAGS # However, we require the C++11 dialect. if (NOT "${MSVC}") - set(spirv-compiler-options ${spirv-compiler-options} -std=c++11 -Wall -Wextra -Werror -Wshadow) + set(spirv-compiler-options ${spirv-compiler-options} -std=c++11 -Wall -Wextra -Wshadow) set(spirv-compiler-defines ${spirv-compiler-defines} __STDC_LIMIT_MACROS) if(SPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS) diff --git a/third_party/spirv-tools/CMakeLists.txt b/third_party/spirv-tools/CMakeLists.txt index 9ea29ab..f967a87 100755 --- a/third_party/spirv-tools/CMakeLists.txt +++ b/third_party/spirv-tools/CMakeLists.txt @@ -94,7 +94,7 @@ endif(SPIRV_BUILD_COMPRESSION) option(SPIRV_BUILD_FUZZER "Build spirv-fuzz" OFF) -option(SPIRV_WERROR "Enable error on warning" ON) +option(SPIRV_WERROR "Enable error on warning" OFF) if(("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU") OR (("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") AND (NOT CMAKE_CXX_SIMULATE_ID STREQUAL "MSVC"))) set(COMPILER_IS_LIKE_GNU TRUE) endif()